package com.itheima.stock.mapper;

import com.github.pagehelper.ISelect;
import com.github.pagehelper.PageInfo;
import com.itheima.stock.pojo.domain.EditUserDomain;
import com.itheima.stock.pojo.domain.SysUserDomain;
import com.itheima.stock.pojo.domain.UserByIdDomain;
import com.itheima.stock.pojo.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author hyx
* @description 针对表【sys_user(用户表)】的数据库操作Mapper
* @createDate 2024-05-22 20:50:24
* @Entity com.itheima.stock.pojo.entity.SysUser
*/
public interface SysUserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUser record);

    int updateUserByInfo(EditUserDomain editUserDomain);

    int updateByPrimaryKey(SysUser record);

    SysUser findUserInfoByUserName(@Param("userName") String userName);

    boolean findUserByUserName(@Param("userName") String userName);


    List<SysUserDomain> getSysUserDomain();

    void delUserById(@Param("userIds") List<Long> userIds);

    UserByIdDomain getUserById(@Param("userId") String userId);
}
